#!/bin/sh

mkdir -p /tmp /proc /sys /mnt

mount -a

cat /proc/cmdline | grep 'root=' || mount -t devtmpfs devtmpfs /dev

mkdir /dev/pts
mount -t devpts devpts /dev/pts

echo qemu  > /proc/sys/kernel/hostname

source /etc/profile

ifconfig eth0 up && udhcpc
